package com.topc.problem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.topc.base.model.PageParams;
import com.topc.base.model.PageResult;
import com.topc.problem.model.dto.QueryDealInfoDto;
import com.topc.problem.model.dto.SaveDealCommentDto;
import com.topc.problem.model.dto.SaveDealInfoDto;
import com.topc.problem.model.po.ProblemDealInfo;
import com.topc.problem.model.vo.DealCommentShowVo;
import com.topc.problem.model.vo.DealDetailShowVo;
import com.topc.problem.model.vo.DealShowVo;


public interface IProblemDealInfoService extends IService<ProblemDealInfo>{

    PageResult<ProblemDealInfo> searchByPage(int pageSize, int pageCurrent, QueryDealInfoDto queryDealInfoDto);

    String getContextById(Long id);

    Boolean saveContext(String userNumber, Long questionId, String context,String title);

    PageResult<DealShowVo> searchDealByPage(PageParams pageParams, Long id);

    void saveDealInfo(SaveDealInfoDto saveDealInfoDto);

    void updateInfoById(Long id, SaveDealInfoDto saveDealInfoDto);

    void deleteInfoById(Long id);

    DealDetailShowVo searchDetailById(Long id);

    PageResult<DealCommentShowVo> searchCommentByNumber(PageParams pageParams, String userNumber, Long id);

    void saveCommentInfo(SaveDealCommentDto saveDealCommentDto);
}
